package com.mazong.servershirodemo.pojo;

import java.util.Set;

public class TbRole {
    private Integer id;
    private String roleName;

    // 角色对应权限集合
    private Set<TbPermission> permissions;

    public TbRole(Integer id, String roleName, Set<TbPermission> permissions) {
        this.id = id;
        this.roleName = roleName;
        this.permissions = permissions;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Set<TbPermission> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<TbPermission> permissions) {
        this.permissions = permissions;
    }
}
